package com.dfs.parent.gateway.props;

import lombok.Data;
import org.springframework.boot.context.properties.ConfigurationProperties;
import org.springframework.cloud.context.config.annotation.RefreshScope;
import org.springframework.context.annotation.Configuration;

import java.util.List;

/**
 * @Description jwt 配置信息
 * @Author dahong
 * @Date 2024/2/4 00:17
 */
@Data
@RefreshScope
@Configuration
@ConfigurationProperties(prefix = "dfs.gray")
public class GrayProperties {
    private Boolean enabled;//是否开启灰度
    private Boolean batchEnabled;//是否开启批量灰度
    private Integer userIdRemainder;//取模
    private Integer userIdSharding;// 分片
    private Boolean whitelistEnabled;//是否开启白名单
    private List<Long> whitelistUserIds;//白名单用户
}
